import Vue from 'vue'
import Vuex from 'vuex'
import shopcart from '@/store/modules/shopcart.js'
import user from '@/store/modules/user.js'
Vue.use(Vuex)
//创建store实例
const store=new Vuex.Store({
	modules:{
		shopcart,user
	}
})
//默认导出store对象
export default store